import { defineStore } from "pinia";

export const useThemeConfig = defineStore("themeConfig", {
  state: (): ThemeConfigState => ({
    themeConfig: {
      isCollapse: false,
      isUniqueOpened: true,
    },
  }),
  actions: {
    setThemeConfig(data: ThemeConfigState) {
      this.themeConfig = data.themeConfig;
    },
  },
});
